package org.awa.demo.opencv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.awa.demo.opencv.entity.GeoPolygonBuildEntity;

import java.util.List;

/**
 * device-manager
 *
 * @author hxq
 * @since 2020-12-09
 */
public interface GeoPolygonBuildMapper extends BaseMapper<GeoPolygonBuildEntity> {

    Long insertBatch(@Param("list") List<GeoPolygonBuildEntity> list);

//    List<GeoPolygonBuildEntity> findGeoListByRange(@Param("range") String range);
//
    List<GeoPolygonBuildEntity> findBuildingListByRoadId(@Param("roadId") Integer roadId, @Param("length") Integer length);
//
    List<GeoPolygonBuildEntity> findAllGeoFeatureList();

    GeoPolygonBuildEntity findBuildListByGeoId(@Param("geoId") String geoId);

    GeoPolygonBuildEntity findBuildById(@Param("id") Integer id);
}
